<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加会员</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/member.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-validation-1.13.1/demo/css/screen.css">
	
	<script>
	$.validator.setDefaults({
		submitHandler: function() {
			from.submit();
		}
	});
		$(function(){		
			$("#userform").validate({
  			 	rules:{
  			 		name:"required",
  			 		number:"required"
  			 		 		
  			 	},
  			 	messages:{
  			 		name:"请输入姓名",
  			 		number:"请输入用户名"
  			 	}
  			 });
		});
	</script>
	
  </head>
  
  <body>
   	<div id="head-search">
   	 	<span class="home-path"></span>
   	 	<span class="path-font">会员信息管理&nbsp;&nbsp;>>&nbsp;&nbsp;添加会员 </span>
   	</div>
   	<div class="memberbody">
   	<form id="userform" action="<%=basePath%>addUserAction" method="post">
  	   	<div class="memberleft">
  	    <div class="member-property-list">
  	    	用户名:<input  name="number" id="number" title="请输入用户的姓名拼音"/>
  	    </div>
  		<div class="member-property-list">
  			姓&nbsp;&nbsp;名:<input name="name" id="name">
  		</div>
  		<div class="submit">
  			<button class="wong-button-text-ui wong-button-blue" onclick="javascrit:$('#userform').submit();">
   				<span class="wong-ui-icon wong-icon-save"></span>
   				<span >保存</span>
   			</button>
  		</div>
  		</div>	
  	</form>
   	</div>
  </body>
  
</html>
